package com.ccys.cms.service.marketing;


import com.ccys.common.vo.ResponseResult;
import com.ccys.db.dto.marketing.NewsDTO;
import com.ccys.db.entity.TblNews;
import com.ccys.db.rely.service.BaseService;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * tbl_news管理
 */
public interface NewsWebService extends BaseService<TblNews> {


    /**
     * 查询列表
     *
     * @param request
     * @param response
     * @param dto
     * @return
     */
    public ResponseResult listObjectsCms(HttpServletRequest request, HttpServletResponse response, NewsDTO dto);

    /**
     * 添加修改
     * @param entity
     * @return
     */
    public ResponseResult change(NewsDTO entity);

    /**
     * 删除
     * @param dto
     * @return
     */
    public ResponseResult delete(TblNews dto);


       /**
        * @description 查询详情
        * @date     2023/12/26
        * @author   cloud fly
        */
    ResponseResult getDetail(HttpServletRequest request, HttpServletResponse response, NewsDTO dto);

       /**
        * @description 解析文件中关联的benifit数据
        * @date     2023/12/26
        * @author   cloud fly
        */
    ResponseResult analysisFileBenifitData(HttpServletRequest request, NewsDTO dto, MultipartFile file);

       /**
        * @description 查询选择配套
        * @date     2024/1/10
        * @author   cloud fly
        */
    ResponseResult listPlanSelectListWebVO(HttpServletRequest request, HttpServletResponse response, NewsDTO dto);
}